package com.sz.service.impl;

import com.sz.mapper.UserInfoMapper;
import com.sz.mapper.UserMapper;

import com.sz.model.BankCard;
import com.sz.model.TUser;
import com.sz.service.IUserInfoService;
import com.sz.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public TUser queryById(long pkUserId) {
        return userInfoMapper.queryById(pkUserId);
    }

    @Override
    public List<BankCard> queryBank(long userId) {
        return userInfoMapper.queryBank(userId);
    }

    @Override
    public Long queryUserId(String ukPhone) {
        return userInfoMapper.queryUserId(ukPhone);
    }

    @Override
    public BankCard queryBankInfo(Long ukIdentityId) {
        return userInfoMapper.queryBankInfo(ukIdentityId);
    }

    @Override
    public List<BankCard> getBankList(Long uid) {
        return userInfoMapper.getBankList(uid);
    }


}
